<?php
namespace Models;
class CategoryModel extends CommonModel {
    public function getAllCategories(){
        $sql = 'select id, title from categories';
        return $this->db->query($sql)->fetchAll();
    }
}